package com.aaa.service.impl;

import com.aaa.commons.result.PageInfo;
import com.aaa.mapper.CharacterTesterMapper;
import com.aaa.model.CharacterTester;
import com.aaa.model.vo.CharacterTesterVo;
import com.aaa.service.ICharacterTesterService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 性格测试者 服务实现类
 * </p>
 *
 * @author chenjian
 * @since 2021-11-25
 */
@Service
public class CharacterTesterServiceImpl extends ServiceImpl<CharacterTesterMapper, CharacterTester> implements ICharacterTesterService {
    @Autowired
    private CharacterTesterMapper characterTesterMapper;
    @Override
    public List<CharacterTesterVo> queryAllCharacterTestResule( PageInfo pageInfo,CharacterTesterVo characterTester) {
       return  characterTesterMapper.queryAllCharacterTestResule(pageInfo, characterTester);
    }

    @Override
    public int getCharacterTestResultCount() {
        return characterTesterMapper.getCharacterTestResultCount();
    }
}
